package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * 路条人/合作方公司主体对象 erp_survey_referee_company_info
 * @author wutao
 * @date 2024-05-24
 */
@TableName ("erp_survey_referee_company_info")
@ApiModel (value = "erp_survey_referee_company_info对象", description = "路条人/合作方公司主体")
@Data
public class SurveyRefereeCompanyEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 公司名称
     */
    @ApiModelProperty ("公司名称")
    @TableField ("company_name")
    @Excel (name = "公司名称")
    private String companyName;

    /**
     * 公司地址
     */
    @ApiModelProperty ("公司地址")
    @TableField ("company_address")
    @Excel (name = "公司地址")
    private String companyAddress;

    /**
     * 开户行
     */
    @ApiModelProperty ("开户行")
    @TableField ("bank_name")
    @Excel (name = "开户行")
    private String bankName;

    /**
     * 银行账号
     */
    @ApiModelProperty ("银行账号")
    @TableField ("account")
    @Excel (name = "银行账号")
    private String account;

    /**
     * 账户名称
     */
    @ApiModelProperty ("账户名称")
    @TableField ("account_name")
    @Excel (name = "账户名称")
    private String accountName;

    /**
     * 税号
     */
    @ApiModelProperty ("税号")
    @TableField ("tax_id")
    @Excel (name = "税号")
    private String taxId;

    /**
     * 税号
     */
    @ApiModelProperty ("路条人Id")
    @TableField ("survey_referee_id")
    @Excel (name = "路条人")
    private String surveyRefereeId;

    /**
     * 是否在用
     */
    @ApiModelProperty ("是否在用")
    @TableField ("is_used")
    @Excel (name = "是否在用")
    private Integer isUsed;


    @TableField(exist = false)
    private List<FileEntity> fileEntities;

    @Override
    public String toString () {
        return new ToStringBuilder ( this, ToStringStyle.MULTI_LINE_STYLE )
                .append ( "id", getId () )
                .append ( "companyName", getCompanyName () )
                .append ( "companyAddress", getCompanyAddress () )
                .append ( "bankName", getBankName () )
                .append ( "account", getAccount () )
                .append ( "accountName", getAccountName () )
                .append ( "taxId", getTaxId () )
                .append ( "createTime", getCreateTime () )
                .append ( "updateTime", getUpdateTime () )
                .append ( "isUsed", getIsUsed () )
                .toString ();
    }
}
